package controller

import (
	"net/http"

	"gitee.com/shuwenhe/shuwen-mall/dao"
)

func DeleteItem(w http.ResponseWriter, r *http.Request) {
	ID := r.FormValue("bookId") // <td><a href="/deleteItem?bookId={{.ID}}">删除</a></td>
	dao.DeleteItem(ID)
	GetItems(w, r)
}
